package cn.study.completableFutureTest.flow;

import java.util.concurrent.CompletableFuture;

/**
 * @Author     ：跟大佳一起学架构
 * @Description：消费类
 */
public class ThenAccept {
    public static void main(String[] args) {
        CompletableFuture.supplyAsync(() -> "hello")
                .thenAccept(s -> System.out.println(s+" world"));
    }
}
